package storage.statistics;

public abstract class Statistic {  
  protected final String SEP = "#"; //separator
  private StatisticType type;
  
  public Statistic(StatisticType statType) {
    this.type = statType;
  }
  
  public Statistic(StatisticType statType, String value) {
    this.type = statType;
    setStatValue(value);
  }
  
  public String getType() {
    return type.getDescription();
  }
  
  public abstract String getHtmlString();
  public abstract String getStatValues();
  protected abstract void setStatValue(String value);
}
